"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const fs_1 = __importDefault(require("fs"));
const crypto_1 = __importDefault(require("crypto"));
async function fileMd5(path) {
    const buffer = fs_1.default.readFileSync(path);
    return crypto_1.default.createHash('md5').update(buffer).digest('hex');
}
exports.default = fileMd5;
